package com.lancoo.ccas53.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 选课轮次
 * </p>
 *
 * @author quin.song
 * @since 2024-05-21
 */
@Data
@Accessors(chain = true)
@TableName("css_task_round")
@ApiModel(value = "CssTaskRound对象", description = "选课轮次")
public class CssTaskRound implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer taskId;

    @ApiModelProperty("1预选 2正式选课")
    private Integer type;

    @ApiModelProperty("选课类型 1、预选 2、正选 3重修选课 4自选")
    private Integer selectType;

    @ApiModelProperty("选课权限 1、可退/可选  2、仅可选  3、仅可退")
    private Integer selectAuthority;

    @ApiModelProperty("0选课数据未存入数据库  1选课数据已存入数据库")
    private Integer round;

    @ApiModelProperty("选课轮次名")
    private String roundName;

    @ApiModelProperty("允许跨专业选课 0不允许1允许")
    private Integer crossMajor;

    @ApiModelProperty("选课开始时间")
    private Date beginTime;

    @ApiModelProperty("选课结束时间")
    private Date endTime;

    @ApiModelProperty("选课人数")
    private Integer studentNum;

    @ApiModelProperty("创建人id")
    private String createdUserId;

    private String createdUserName;

    private LocalDateTime createdTime;

    @ApiModelProperty("操作状态 0未开启  1已开启")
    private Integer isEnable;
}
